package com.ruoyi.psi.sale.order.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.sql.Timestamp;

/**
 * 查询条件
 */
@Data
public class SaleOrderCond extends BaseEntity {
    /**
     * 销售订单编号
     */
    @NotNull(message = "销售订单编号不能为空")
    @ApiModelProperty(value = "销售订单编号", required = true)
    private String saleOrderId;

    /**
     * 订单类型
     * 0-销售订单 1-预测订单
     */
    @ApiModelProperty(value = "订单类型")
    private String saleOrderType;

    /**
     * 销售员编号
     */
    @NotNull(message = "销售员编号不能为空")
    @ApiModelProperty(value = "销售员编号", required = true)
    private String staffSaleId;

    /**
     * 产品编号
     */
    @NotNull(message = "产品编号不能为空")
    @ApiModelProperty(value = "产品编号", required = true)
    private String produceId;
    private String produceName;

    /**
     * 客户编号
     */
    @NotNull(message = "客户编号不能为空")
    @ApiModelProperty(value = "客户编号", required = true)
    private String customerInfoId;

    /**
     * 订单时间
     */
    @ApiModelProperty("订单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createTime;

    /**
     * 是否审批
     */
    @ApiModelProperty("是否审批")
    private String approvalFlag;
    /**
     * 装箱数
     */
    @ApiModelProperty("装箱数")
    private double packingQty;

    /**
     * 箱数
     */
    @ApiModelProperty("箱数")
    private double boxQty;
    /**
     * 用户名称
     */
    @ApiModelProperty("用户名称")
    private String userName;
    /**
     * 角色id
     */
    @ApiModelProperty("角色id")
    private long roleId;
}
